Skip to content

Conversation

lcharlois-neotys
Copy link

Fixes #4668
When operationNameSuffix is provided the generated hooks are named using this suffis.
For example useGetPetByIdQuery becomes useGetPetByIdSuffixQuery.

I chosen to put the suffix before the Query or Mutation suffix, be it could be changed to generate names like useGetPetByIdQuerySuffix.

Copy link

codesandbox bot commented Sep 25, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ac533dc:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

Copy link

netlify bot commented Sep 25, 2025

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit ac533dc
🔍 Latest deploy log https://app.netlify.com/projects/redux-starter-kit-docs/deploys/68d4ec15b929c30008eb2998
😎 Deploy Preview https://deploy-preview-5089--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rtk-query Codegen OperationNameSuffix not appended in hook names
1 participant